
import { setStoreState } from '@/store/utils'


const userActions = {
  // 刷新令牌
  getToken() {
     setStoreState('user', 'token', 'c2acd2162d2f11ea9c2cc80aa95ba6a2' );
  },
  // 获取用户信息
  getUserDetail() {
    setStoreState('user', 'userDetail', {
      username: 'admin',
      userId: 1001
    })
  }
}

type UserActionsType = typeof userActions

export { UserActionsType }
export default userActions
